package com.ayf.payment.game.api.service.impl;

import com.ayf.payment.game.api.entity.ProxyNetConfig;
import com.ayf.payment.game.api.mapper.ProxyNetConfigMapper;
import com.ayf.payment.game.api.service.ProxyNetConfigService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ProxyNetConfigServiceImpl implements ProxyNetConfigService {

    @Resource
    private ProxyNetConfigMapper proxyNetConfigMapper;

    @Override
    public boolean insert(ProxyNetConfig proxyNetConfig) {

        return proxyNetConfigMapper.insertSelective(proxyNetConfig) > 0;
    }

    @Override
    public boolean update(ProxyNetConfig proxyNetConfig) {
        return proxyNetConfigMapper.update(proxyNetConfig) > 0;
    }

    @Override
    public ProxyNetConfig selectByLowerId(Integer lowerId) {
        return proxyNetConfigMapper.selectByLowerId(lowerId);
    }

    @Override
    public ProxyNetConfig selectByMerchantId(Integer MerchantId) {
        return proxyNetConfigMapper.selectByMerchantId(MerchantId);
    }
}


